package com.kakavr.work.service;

import java.util.List;
import java.util.Map;

import com.kakavr.base.service.IBaseService;
import com.kakavr.page.Pagination;

public interface IWorkRecordService extends IBaseService {

	/**
	 * 上班打卡人员列表
	 * 
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> selectWorkUserList(Map<String, Object> map);

	/**
	 * 上班记录
	 * 
	 * @param map
	 * @return
	 */
	Pagination<Map<String, Object>> selectWorkList(Map<String, Object> map);

	/**
	 * 上班打卡
	 * 
	 * @param map
	 */
	void addWorkRecord(Map<String, Object> map);

	/**
	 * 下班打卡
	 * 
	 * @param map
	 */
	void updateWorkRecord(Map<String, Object> map);
	
	/**
	 * 统计各个员工提成
	 * 
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> staticWorkUser(Map<String, Object> map);

	/**
	 * 员工统计自己提成
	 * 
	 * @param map
	 * @return
	 */
	Pagination<Map<String, Object>> staticWorkByOwn(Map<String, Object> map);
	
	/**
	 * 查询最近打卡记录
	 * 
	 * @param map
	 * @return
	 */
	Map<String, Object> selectStoreMaxWork(Map<String, Object> map);
}
